package com.adee.gulimall.ware;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.transaction.annotation.EnableTransactionManagement;

// 开启远程调用
@EnableFeignClients(basePackages = "com.adee.gulimall.ware.feign")
@EnableDiscoveryClient
@EnableTransactionManagement
@MapperScan("com.adee.gulimall.ware.dao")
//@ComponentScan(basePackages = {"com.adee.gulimall.ware","com.adee.gulimall.common.config"})
@SpringBootApplication
public class GulimallWareApplication {
    public static void main(String[] args) {
        SpringApplication.run(GulimallWareApplication.class, args);
    }
}
